package com.chenwut.mydynamicproxy.a1_;

/**
 * @author ChenPi
 * @since 2024/09/24 11:23
 */
public class BigStar implements StarService {
    private String name;

    public BigStar() {
    }

    public BigStar(String name) {
        this.name = name;
    }

    @Override
    public String sing(String song) {
        System.out.println(name + ": 唱" + song);
        return "Thanks♪(･ω･)ﾉ";
    }

    @Override
    public void dance() {
        System.out.println(name + ": 跳");
    }

    /**
     * 获取
     *
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "BigStar{name = " + name + "}";
    }
}
